var fortuneCookies = [
    "Conquer your fears or they will conquer you.",
    "Rivers need springs.",
    "You will have a pleasant surprise.",
    "Whenever possible, keep it simple"
]

// exports.getFortune = function() {
//     var idx = Math.floor(Math.random() * fortuneCookies.length);
//     return fortuneCookies[idx];
// }
function getFortune() {
    var idx = Math.floor(Math.random() * fortuneCookies.length);
    return fortuneCookies[idx];
}
module.exports = {
    getFortune: getFortune
}